package edu.sctu.practice.class02.liqing.test18;

/**
 * Created by 123456 on 2015/11/1.
 */
public class Car extends Auto {
    boolean aircondition;
    boolean CD;
    public Car(int number, String color, double weight, double speed,boolean aircondition,boolean CD){
        super(number,color,weight,speed);
        this.aircondition=aircondition;
        this.CD=CD;
    }
    public void Upspeed(){
        System.out.println("汽车加速了");
    }
    public void Downspeed(){
        System.out.println("汽车减速了");
    }
    public void getinfo(){
        System.out.println("轮胎："+number+""+"颜色："+color+""+"重量："+""+"速度："+speed+"有空调："+aircondition+""+"有CD:"+CD);
    }
}
